<?php 
require_once 'dataLogic/dataCenter.php';
require_once 'dataLogic/MJDMUser.php';
require_once 'dataLogic/common.php';

log_action("In Page : ".__FILE__);

if(!isset($_SESSION)){session_start();}

//user instance
$uInstance = GetUserBasicInfo();

$displayName = $uInstance->displayName;

$curPoints = $uInstance->getCurPoints();

$headerContents = <<< EOHEADER

<div class="header-inner">
	<h1 class="logo">MiaoJi</h1>
	<div class="user-info mt20">
		<img src="asset/image/avatar.jpg" alt="Colin" class="avatar">
		<p class="username">$displayName</p>
		<p class="user-coin">$curPoints</p>
	</div>
	<div class="user-logout mt20">
		<a href="#">Log out </a>
	</div>
</div>


EOHEADER;

echo $headerContents;

?>


